<!-- src/views/base/EmergencyList/DetailDialog.vue -->
<template>
  <el-dialog title="应急信息详情" :visible.sync="visible" width="80%" append-to-body>
    <el-descriptions :column="1" border>
        <el-descriptions-item label="处置原则">{{ detailData.handlePrinciple }}</el-descriptions-item>
        <el-descriptions-item label="车辆运维工">{{ detailData.repairUserContent }}</el-descriptions-item>
        <el-descriptions-item label="DCC调度">{{ detailData.dccContent }}</el-descriptions-item>
        <el-descriptions-item label="其他抢险救援队">{{ detailData.othenEamContent }}</el-descriptions-item>
        <el-descriptions-item label="车辆抢险救援队">{{ detailData.emergencyTeamContent }}</el-descriptions-item>
    </el-descriptions>
    <div slot="footer" class="dialog-footer">
      <el-button @click="visible = false">关 闭</el-button>
    </div>
  </el-dialog>
</template>

<script>
export default {
  name: "EmergencyDetailDialog",
  props: {
    visible: {
      type: Boolean,
      default: false
    },
    detailData: {
      type: Object,
      default: () => ({})
    }
  },
  methods: {
    parseTime(time) {
      return this.$TOOL.parseTime(time);
    }
  }
};
</script>